<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>TimKiemDichVuHCM: xdpm.nhom16.helper.Utilities Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">TimKiemDichVuHCM
   &#160;<span id="projectnumber">Final</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.8.0 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('classxdpm_1_1nhom16_1_1helper_1_1_utilities.html','');
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#pub-static-attribs">Static Public Attributes</a>  </div>
  <div class="headertitle">
<div class="title">xdpm.nhom16.helper.Utilities Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><a href="classxdpm_1_1nhom16_1_1helper_1_1_utilities-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:aaa4670b124b790325824eb09d213c606"><td class="memItemLeft" align="right" valign="top">static String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxdpm_1_1nhom16_1_1helper_1_1_utilities.html#aaa4670b124b790325824eb09d213c606">formatInputData</a> (final String input)</td></tr>
<tr class="memitem:ad8439215ff744060069e42fada01424d"><td class="memItemLeft" align="right" valign="top">static final boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxdpm_1_1nhom16_1_1helper_1_1_utilities.html#ad8439215ff744060069e42fada01424d">isExistNumbers</a> (final String s)</td></tr>
<tr class="memitem:a2f7233ae61a79e461ca44511e00c28d1"><td class="memItemLeft" align="right" valign="top">static final Integer[]&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxdpm_1_1nhom16_1_1helper_1_1_utilities.html#a2f7233ae61a79e461ca44511e00c28d1">getNumbersInString</a> (final String input)</td></tr>
<tr class="memitem:a537aae5b97658d555ecc18c7101692bc"><td class="memItemLeft" align="right" valign="top">static&lt; T &gt; Integer[]&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxdpm_1_1nhom16_1_1helper_1_1_utilities.html#a537aae5b97658d555ecc18c7101692bc">listIntegerToArray</a> (ArrayList&lt; Integer &gt; list)</td></tr>
<tr class="memitem:a91702e225848122a73e71db2ad1c6e9b"><td class="memItemLeft" align="right" valign="top">static final String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxdpm_1_1nhom16_1_1helper_1_1_utilities.html#a91702e225848122a73e71db2ad1c6e9b">generateSelection</a> (final String columnName, final Object[] params)</td></tr>
<tr class="memitem:ab7b0ac1d36e182da5db4ea6f174c5bd1"><td class="memItemLeft" align="right" valign="top">static final String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classxdpm_1_1nhom16_1_1helper_1_1_utilities.html#ab7b0ac1d36e182da5db4ea6f174c5bd1">clear</a> (String s, String strClear)</td></tr>
<tr class="memitem:a44195c6b27155f0fd8877fab34704b7a"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a44195c6b27155f0fd8877fab34704b7a"></a>
static Drawable&#160;</td><td class="memItemRight" valign="bottom"><b>LoadImageFromWeb</b> (String url)</td></tr>
<tr class="memitem:a86f2d1002376bafc63c49067f3e3463c"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a86f2d1002376bafc63c49067f3e3463c"></a>
static void&#160;</td><td class="memItemRight" valign="bottom"><b>onClickButtonSearch</b> (String strQuery, Context mContext)</td></tr>
<tr class="memitem:a912ec994e0963adbe90b21c6f03e060a"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a912ec994e0963adbe90b21c6f03e060a"></a>
static Bitmap[]&#160;</td><td class="memItemRight" valign="bottom"><b>getDichVuIcon</b> (Context mContext)</td></tr>
<tr class="memitem:a6e93e827729c09005967fa0fd827a7e4"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6e93e827729c09005967fa0fd827a7e4"></a>
static int&#160;</td><td class="memItemRight" valign="bottom"><b>getMaDichVu</b> (String tenDichVu, Context mContext)</td></tr>
<tr><td colspan="2"><h2><a name="pub-static-attribs"></a>
Static Public Attributes</h2></td></tr>
<tr class="memitem:adada13e26551b73eed305d369a6db65f"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="adada13e26551b73eed305d369a6db65f"></a>
static final HashMap<br class="typebreak"/>
&lt; Character, Character &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>dictionary</b> = new HashMap&lt;Character, Character&gt;()</td></tr>
<tr class="memitem:ac5369ec539afa8133758c0c49a08ae49"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac5369ec539afa8133758c0c49a08ae49"></a>
static Bitmap[]&#160;</td><td class="memItemRight" valign="bottom"><b>dichVuIcon</b> = null</td></tr>
</table>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="ab7b0ac1d36e182da5db4ea6f174c5bd1"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static final String <a class="el" href="classxdpm_1_1nhom16_1_1helper_1_1_utilities.html#ab7b0ac1d36e182da5db4ea6f174c5bd1">xdpm.nhom16.helper.Utilities.clear</a> </td>
          <td>(</td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>s</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>strClear</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [inline, static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">s</td><td></td></tr>
    <tr><td class="paramname">strClear</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>Nếu strClear khác null hoặc rổng thì : nếu strClear chứa s hàm trả về chuổi rổng, nếu strClear không chứa s return về một chuổi bằng s remove hết strClear trong nó. Còn nếu không thì return về chuổi s </dd></dl>

</div>
</div>
<a class="anchor" id="aaa4670b124b790325824eb09d213c606"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static String <a class="el" href="classxdpm_1_1nhom16_1_1helper_1_1_utilities.html#aaa4670b124b790325824eb09d213c606">xdpm.nhom16.helper.Utilities.formatInputData</a> </td>
          <td>(</td>
          <td class="paramtype">final String&#160;</td>
          <td class="paramname"><em>input</em></td><td>)</td>
          <td><code> [inline, static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Định dạng lại chuổi chống injection và chuyển đội các kí tự tiếng việt thành tiếng chử cái không dấu,replace nhiều khoảng trắng bằng một khoảng trắng</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">input</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>một chuổi đã định dạng </dd></dl>

</div>
</div>
<a class="anchor" id="a91702e225848122a73e71db2ad1c6e9b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static final String <a class="el" href="classxdpm_1_1nhom16_1_1helper_1_1_utilities.html#a91702e225848122a73e71db2ad1c6e9b">xdpm.nhom16.helper.Utilities.generateSelection</a> </td>
          <td>(</td>
          <td class="paramtype">final String&#160;</td>
          <td class="paramname"><em>columnName</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">final Object[]&#160;</td>
          <td class="paramname"><em>params</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [inline, static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Tạo một điều kiện truy vấn dựa trên một mảng giá trị</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">columnName</td><td></td></tr>
    <tr><td class="paramname">params</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>một mảng string chưa format (chống injection ...), hoặc một chuổi rổng nếu params không chứa phần tử nào. hàm không throw exception </dd></dl>

</div>
</div>
<a class="anchor" id="a2f7233ae61a79e461ca44511e00c28d1"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static final Integer [] <a class="el" href="classxdpm_1_1nhom16_1_1helper_1_1_utilities.html#a2f7233ae61a79e461ca44511e00c28d1">xdpm.nhom16.helper.Utilities.getNumbersInString</a> </td>
          <td>(</td>
          <td class="paramtype">final String&#160;</td>
          <td class="paramname"><em>input</em></td><td>)</td>
          <td><code> [inline, static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Lấy ra tất cả các số nguyên(Kieu Integer) trong chuổi input</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">input</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>mảng kết quả không chứa giá trị null, hoặc null nếu mảng không chứa số nguyên nào </dd></dl>

</div>
</div>
<a class="anchor" id="ad8439215ff744060069e42fada01424d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static final boolean <a class="el" href="classxdpm_1_1nhom16_1_1helper_1_1_utilities.html#ad8439215ff744060069e42fada01424d">xdpm.nhom16.helper.Utilities.isExistNumbers</a> </td>
          <td>(</td>
          <td class="paramtype">final String&#160;</td>
          <td class="paramname"><em>s</em></td><td>)</td>
          <td><code> [inline, static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Kiểm tra trong chuổi có số hay không</p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">s</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>true nếu tồn tại số trong chuổi </dd></dl>

</div>
</div>
<a class="anchor" id="a537aae5b97658d555ecc18c7101692bc"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static &lt;T&gt; Integer [] <a class="el" href="classxdpm_1_1nhom16_1_1helper_1_1_utilities.html#a537aae5b97658d555ecc18c7101692bc">xdpm.nhom16.helper.Utilities.listIntegerToArray</a> </td>
          <td>(</td>
          <td class="paramtype">ArrayList&lt; Integer &gt;&#160;</td>
          <td class="paramname"><em>list</em></td><td>)</td>
          <td><code> [inline, static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">list</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>chú ý return null nếu list rổng </dd></dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>Nhom16_00h_27_04_Final/Source/src/xdpm/nhom16/helper/Utilities.java</li>
</ul>
</div><!-- contents -->
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><b>xdpm</b>      </li>
      <li class="navelem"><a class="el" href="namespacexdpm_1_1nhom16.html">nhom16</a>      </li>
      <li class="navelem"><b>helper</b>      </li>
      <li class="navelem"><a class="el" href="classxdpm_1_1nhom16_1_1helper_1_1_utilities.html">Utilities</a>      </li>

    <li class="footer">Generated on Fri Apr 27 2012 14:39:33 for TimKiemDichVuHCM by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.0 </li>
   </ul>
 </div>


</body>
</html>
